package com.bvgol.example.rabbitmq;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableRabbit
@SpringBootApplication
public class RabbitMqApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitMqApplication.class, args);

        /**
         * @rabbitlistener 写在类上, 监听哪些队列
         * @rabbithandler 写在方法上, 重载区分不同的消息
         *
         */
    }

}
